<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
清除默认样式    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>内边距</title>
    <style>
      .box{
          width: 200px;
          height: 200px;
          background-color: pink;
          padding-top: 20px;
          padding-right: 30px;
          padding-bottom: 40px;
          padding-left: 50px;
          /* padding: 20px 30px 40px 50px; 顺时针方向上右下左 */
      }
    </style>
</head>
<body>
    <div class="box">文字</div>
</body>
</html>